package com.wiloon.java8x.javabasic;

/**
 * Created by wiloon on 1/22/15.
 */

public class Test extends BB {
    public static void main(String[] args) {
        Test a = new Test(5);
    }
    private int radius = 1;
    public void draw() {
        System.out.println("A.draw(),radius =" + radius);
    }
    public Test(int radius) {
        this.radius = radius;
        System.out.println("A constructor");
    }
}
class BB {
    private int radius = 10;
    public void draw() {
        System.out.println("B.draw(),radius =" + radius);
    }
    public BB() {
        System.out.println("B constructor");
        draw();
    }
}